package com.rtx.edi.model.menu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.edi.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 系统权限信息表 (MenuPermission)实体类
 *
 * @author Zy
 * @since 2023-03-08 10:38:38
 */
@Data
@ApiModel("系统权限信息表 ")
@TableName("sys_menu_permission")
public class MenuPermission extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 523166688836270780L;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id", position = 2)
    private Long tenantId;

    /**
     * 公司id
     */
    @ApiModelProperty(value = "公司id", position = 3)
    private Long companyId;

    /**
     * 父级菜单id
     */
    @ApiModelProperty(value = "父级菜单id", position = 4)
    private Long parentId;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号", position = 5)
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", position = 6)
    private String name;

    /**
     * 层级名称
     */
    @ApiModelProperty(value = "层级名称", position = 7)
    private String levelName;

    /**
     * url
     */
    @ApiModelProperty(value = "url地址", position = 8)
    private String url;

    /**
     * 类型(10101菜单、10102操作按钮)
     */
    @ApiModelProperty(value = "类型(10101菜单、10102操作按钮)", position = 9)
    private Integer type;

    /**
     * 排序编号
     */
    @ApiModelProperty(value = "排序编号", position = 10)
    private Integer sortNum;

    /**
     * 排序编号
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "排序编号", position = 11)
    private List<MenuPermission> nodes;

    /**
     * 按钮权限
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "按钮权限", position = 12)
    private List<MenuPermission> buttons;
}

